home *** CD-ROM | disk | FTP | other *** search
-
- {*******************************************************}
- { }
- { Programmer's Wizard 2 Pascal Script }
- { (popis jazyka v souboru SCRIPT.DOC) }
- { }
- {*******************************************************}
- uses ScriptUtils;
-
- function GetVerStr: string;
- var
- mMajor, mMinor, mRel: Integer;
- Begin
- GetVersionEx(mMajor, mMinor, mRel);
- result := 'v' + IntToStr(mMajor) + '.' + IntToStr(mMinor) + '.' +
- IntToStr(mRel);
- end;
-
- function GetValidVerStr: string;
- Begin
- result := 'v2.0.1'; //pozadovana verze PW
- end;
-
- var
- mDocuments: Array of String;
- Begin
- if GetValidVerStr <> GetVerStr then //nespravna verze?
- ShowMessage('Upozorn∞nφ: tento skript byl napsßn pro Programmers Wizard ' +
- GetValidVerStr + '. Momentßln∞ spuÜt∞nß verze: ' + GetVerStr);
-
- if not (IsProjectOpened) then Begin
- ShowMessage('P°ed pou₧itφm tohoto skriptu musφ b²t otev°en nprojekt.');
- Halt;
- end;
-
- //prepsat vsechny soubory z projektu do slozky Dokumenty
- EnumProjectFiles(GetCurrentProject, mDocuments);
- SetDocuments(mDocuments);
- end.
-
-